Freescale Semiconductor /MKV58F24 /ENC /CTRL

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CTRL

15 1211 87 43 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (0)CMPIE 0 (0)CMPIRQ 0 (0)WDE 0 (0)DIE 0 (0)DIRQ 0 (0)XNE 0 (0)XIP 0 (0)XIE 0 (0)XIRQ 0 (0)PH1 0 (0)REV 0 (0)SWIP 0 (0)HNE 0 (0)HIP 0 (0)HIE 0 (0)HIRQ

HIE=0, XIRQ=0, XNE=0, XIP=0, CMPIRQ=0, WDE=0, DIRQ=0, REV=0, CMPIE=0, SWIP=0, HIP=0, XIE=0, HIRQ=0, DIE=0, PH1=0, HNE=0

Description

Control Register

Fields

CMPIE

Compare Interrupt Enable

0 (0): Compare interrupt is disabled

1 (1): Compare interrupt is enabled

CMPIRQ

Compare Interrupt Request

0 (0): No match has occurred

1 (1): COMP match has occurred

WDE

Watchdog Enable

0 (0): Watchdog timer is disabled

1 (1): Watchdog timer is enabled

DIE

Watchdog Timeout Interrupt Enable

0 (0): Watchdog timer interrupt is disabled

1 (1): Watchdog timer interrupt is enabled

DIRQ

Watchdog Timeout Interrupt Request

0 (0): No interrupt has occurred

1 (1): Watchdog timeout interrupt has occurred

XNE

Use Negative Edge of INDEX Pulse

0 (0): Use positive transition edge of INDEX pulse

1 (1): Use negative transition edge of INDEX pulse

XIP

INDEX Triggered Initialization of Position Counters UPOS and LPOS

0 (0): No action

1 (1): INDEX pulse initializes the position counter

XIE

INDEX Pulse Interrupt Enable

0 (0): INDEX pulse interrupt is disabled

1 (1): INDEX pulse interrupt is enabled

XIRQ

INDEX Pulse Interrupt Request

0 (0): No interrupt has occurred

1 (1): INDEX pulse interrupt has occurred

PH1

Enable Signal Phase Count Mode

0 (0): Use standard quadrature decoder where PHASEA and PHASEB represent a two phase quadrature signal.

1 (1): Bypass the quadrature decoder. A positive transition of the PHASEA input generates a count signal. The PHASEB input and the REV bit control the counter direction. If CTRL[REV] = 0, PHASEB = 0, then count up If CTRL[REV] = 0, PHASEB = 1, then count down If CTRL[REV] = 1, PHASEB = 0, then count down If CTRL[REV] = 1, PHASEB = 1, then count up

REV

Enable Reverse Direction Counting

0 (0): Count normally

1 (1): Count in the reverse direction

SWIP

Software Triggered Initialization of Position Counters UPOS and LPOS

0 (0): No action

1 (1): Initialize position counter

HNE

Use Negative Edge of HOME Input

0 (0): Use positive going edge-to-trigger initialization of position counters UPOS and LPOS

1 (1): Use negative going edge-to-trigger initialization of position counters UPOS and LPOS

HIP

Enable HOME to Initialize Position Counters UPOS and LPOS

0 (0): No action

1 (1): HOME signal initializes the position counter

HIE

HOME Interrupt Enable

0 (0): Disable HOME interrupts

1 (1): Enable HOME interrupts

HIRQ

HOME Signal Transition Interrupt Request

0 (0): No interrupt

1 (1): HOME signal transition interrupt request

Links

() ()